import request from '@/utils/request'
export interface mingzi{
    username:string,
    password:string
}
interface Data{
    token:string
}
export interface Getinfo{
    "routes":string[],
    "buttons":string[],
    "roles":string[],
    "name":string,
    "avatar":string
}
 export default {
//   /admin/acl/index/login
    getlogin(mingzi:mingzi){
            return request.post<any,Data>('/admin/acl/index/login',mingzi)
        },
         // GET /admin/acl/index/info
    getInfo(){
        return request.get<any,Getinfo>('/admin/acl/index/info')
    },
    OutLogin(){
        return request.post<any,null>('/admin/acl/index/logout')
    }
    }